def fun(n):
    if n == 0:
        return 1
    else:
        return fun(n-1)*n
n = 0
n = int(input("n = "))
print(fun(n))
